package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smz.entity.Menu;
import com.smz.entity.TMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface TMenuDAO extends BaseMapper<TMenu> {


    /**
     * 查询所有仓库
     * @return
     */
    List<TMenu> selectAllTMenu();

    /**
     * 按编号查询仓库
     * @param tMenuNo
     * @return
     */
    TMenu selectTMenuByIdGgy(@Param("tMenuNo") Integer tMenuNo);

    TMenu selectMenuById(@Param("id") Integer id);

    List<TMenu> selectAllMenu();
}
